<?php
namespace app\admin\validate;
use think\Validate;
class Master extends Validate{
    protected $rule = [
        'm_head_img'  =>  'require',
        'm_name' =>  'require',
        'm_phone' => 'require',
        'm_posters' => 'require',
        'm_intro'   => 'require',
        'cate_id'   => 'require',
    ];
    protected $message = [
        'm_head_img.require'  =>  HEADIMG_CONNOT_EMPTY,
        'm_name.require' =>  MASTER_NAME_CONNET_EMPTY,
        'm_phone.require' =>MASTER_PHONE_CONNET_EMPTY,
        'm_posters.require' =>MASTER_POSTER_CONNET_EMPTY,
        'm_intro.require' =>MASTER_INTRO_CONNET_EMPTY,
        'cate_id.require' =>MASTER_CATE_CONNET_EMPTY,
    ];
}